<template>
  <div class="class-statistic">
    <el-tabs v-model="activeName" type="border-card">
      <el-tab-pane label="约排状态" name="1">
        <transition name="fade">
          <datestatus v-if="activeName === '1'"/>
        </transition>
      </el-tab-pane>
      <el-tab-pane label="教师统计" name="2">
        <transition name="fade">
          <teacher v-if="activeName === '2'"/>
        </transition>
      </el-tab-pane>
      <el-tab-pane label="学员统计" name="3">
        <transition name="fade">
          <student v-if="activeName === '3'"/>
        </transition>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import Datestatus from './components/datestatus'
import Teacher from './components/teacher'
import Student from './components/student'
export default {
  components: {
    Datestatus,
    Teacher,
    Student
  },
  data() {
    return {
      activeName: '1'
    }
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
.class-statistic {
  margin-top: 0px;
  padding: 0;
  .fade-enter-active,
  .fade-leave-active {
    transition: opacity 1.5s;
  }
}
</style>
